<?php

namespace app\exception;

/**
 * Class     BusinessException
 *
 * @package App\Exceptions
 *
 * @description 业务异常类 返回给客户的的时候可以直接显示给用户看
 */
class BusinessException extends BaseException
{

    public function __construct($code = 500,$message = '',Exception $previous = null) {

        if ($message == '') {
            $message = config('errormsg.' . $code);
        }
        parent::__construct($code, $message, $previous = null);
    }
}
